package cn.gok.happymallgroup01.util;

/**
 * 响应状态码的枚举类
 */
public enum ResponseCode {
    SUCCESS("0","操作成功"),
    FAIL("1","操作失败"),
    ERROR("500","程序出现未知错误");

    private String code;
    private String msg;


    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
